package com.aid.winter.common.enums;

import lombok.Getter;

@Getter
public enum ResultCodeEnum {
    
    SUCCESS(200, "操作成功"),
    FAIL(500, "操作失败"),
    UNAUTHORIZED(401, "未登录或token已过期"),
    FORBIDDEN(403, "没有相关权限"),
    VALIDATE_FAILED(404, "参数检验失败"),
    SYSTEM_ERROR(500, "系统异常"),
    SERVICE_ERROR(503, "服务异常");

    private final Integer code;
    private final String desc;

    ResultCodeEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
} 